"""
如果多继承的时候，父类有交集类
"""

class A:
    # a = 'a'
    pass


class B(A):
    # a = 'b'
    pass

class C(A):
    # a = 'c'
    pass

class D(B,C):
    # a = 'd'
    pass

"""
如果你不想导包，可以通过这种方式去查找mro链条
"""
print(D.__mro__)

"""
mro链条的顺序为
(<class '__main__.D'>, <class '__main__.B'>, <class '__main__.C'>, <class '__main__.A'>, <class 'object'>)
在这种情况下，python的继承会遵循广度优先，按照DBCA顺序继承
"""